<ui:composition template="/template.xhtml"
				xmlns="http://www.w3.org/1999/xhtml"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:f="http://java.sun.com/jsf/core">
	
	<ui:define name="conteudo">
		
		<h:dataTable value="#{usuarioBean.usuario}" var="u" > 

			<h:column>
				<f:facet name="header">
					<h:outputText value="Nome" />
				</f:facet>
				<h:outputText value="#{u.nome}" />
			</h:column>	
			
			<h:column>
				<f:facet name="header">
					<h:outputText value="E-mail" />
				</f:facet>
				<h:outputText value="#{u.email}" />
			</h:column>		
			
			<h:column>
				<f:facet name="header">
					<h:outputText value="Data de Nascimento" />
				</f:facet>
				<h:outputText value="#{u.nascimento}" />
			</h:column>		
			
			<h:column>
				<f:facet name="header">
					<h:outputText value="Login" />
				</f:facet>
				<h:outputText value="#{u.login}" />
			</h:column>			
		
			<h:column>
				<f:facet name="header">
					<h:outputText value="Ações" />
				</f:facet>
				
				<h:form>
					<h:commandButton value="Excluir" action="#{usuarioBean.removerUsuario(u)}"/>
					<h:commandButton value="Alterar" action="#{usuarioBean.preparaEdicao(u)}"/>
				</h:form>
			</h:column>
		
		</h:dataTable>
		
	</ui:define>
	
</ui:composition>
